home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / ftn / rand.z / rand
Encoding:
Text File  |  1998-10-30  |  1.5 KB  |  67 lines

  1.  
  2.  
  3.  
  4. RRRRAAAANNNNDDDD((((3333FFFF))))                                                              RRRRAAAANNNNDDDD((((3333FFFF))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      rand, irand, srand - random number generator
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      iiiinnnntttteeeeggggeeeerrrr iiiisssseeeeeeeedddd,,,, iiii,,,, iiiirrrraaaannnndddd
  13.      ddddoooouuuubbbblllleeee pppprrrreeeecccciiiissssiiiioooonnnn xxxx,,,, rrrraaaannnndddd
  14.  
  15.      ccccaaaallllllll ssssrrrraaaannnndddd((((iiiisssseeeeeeeedddd))))
  16.  
  17.      iiii ==== iiiirrrraaaannnndddd(((( ))))
  18.  
  19.      xxxx ==== rrrraaaannnndddd(((( ))))
  20.  
  21. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  22.      _I_r_a_n_d generates successive pseudo-random integers in the range from 0 to
  23.      2**15-1.  _r_a_n_d generates pseudo-random numbers distributed in [0, 1.0].
  24.      _S_r_a_n_d uses its integer argument to re-initialize the seed for successive
  25.      invocations of _i_r_a_n_d and _r_a_n_d.
  26.  
  27. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  28.      rand(3C).
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.